-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌤️ feat: Add OpenWeather Tool for Weather Data Retrieval #5246
Conversation
…addington/LibreChat into jmaddington-new/feature/openweather-clean
@jmaddington One thing I noticed is that this isn't setup for user-provided keys. Part of the logic involves
I'll add it when I get the chance |
@danny-avila I'd be glad to provide a key, or we can skip the integration tests if the key doesn't exist. While mock tests are great, I personally have a high preference for live integration tests when it is feasible. |
All good, I meant that the current code was not allowing users to provide their own keys from the UI. Coded tools need to follow a simple authentication pattern to allow for this, see my changes here: |
I can add my own key once it's activated for live testing |
…#5246) * ✨ feat: Add OpenWeather Tool for Weather Data Retrieval 🌤️ * chore: linting * chore: move test files * fix: tool icon, allow user-provided keys, conform to app key assignment pattern * chore: linting not included in danny-avila#5212 --------- Co-authored-by: Jonathan Addington <[email protected]>
…#5246) * ✨ feat: Add OpenWeather Tool for Weather Data Retrieval 🌤️ * chore: linting * chore: move test files * fix: tool icon, allow user-provided keys, conform to app key assignment pattern * chore: linting not included in danny-avila#5212 --------- Co-authored-by: Jonathan Addington <[email protected]>
…#5246) * ✨ feat: Add OpenWeather Tool for Weather Data Retrieval 🌤️ * chore: linting * chore: move test files * fix: tool icon, allow user-provided keys, conform to app key assignment pattern * chore: linting not included in danny-avila#5212 --------- Co-authored-by: Jonathan Addington <[email protected]>
Originally #5206
Summary
Added OpenWeather integration as a structured tool for LibreChat. This integration provides:
The tool uses OpenWeather's One Call API 3.0, which offers a free tier with 1,500 API calls per month.
This PR demonstrates rapid plugin development using AI assistance - the entire implementation, including comprehensive tests and documentation, was completed in about 3 hours while multitasking.
Features
Change Type
Please delete any irrelevant options.
Testing
npm test -- app/clients/tools/__tests__/openWeather.test.js
In addition, it is easy enough to test from with LC. I can provide an API key for testing privately.
Documentation
PR submitted at LibreChat-AI/librechat.ai#196